package cn.stylefeng.guns.modular.shuheng.mapper;

import cn.stylefeng.guns.core.common.node.ZTreeNode;
import cn.stylefeng.guns.modular.shuheng.entity.Level;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhengpp
 * @since 2021-03-07
 */
public interface LevelMapper extends BaseMapper<Level> {
    Page<Map<String, Object>> selectLevel(@Param("page") Page page, @Param("levelName") String levelName,@Param("year")String year);

    List<ZTreeNode> tree(@Param("year")Integer year,@Param("regionType")Integer regionType);

    List<Integer> listYears();

    List<Map<String, Object>> listNotDeal(@Param("year")Integer year, @Param("month")Integer month, @Param("levelId")Long levelId, @Param("userLevel")Integer userLevel, @Param("city")Long city, @Param("county")Long county);
}
